package com.design.command;

/**
 * @author leali
 * @title: InsertNetCommand
 * @projectName design
 * @description: 增加命令类：具体命令
 * @date 2022/1/3 17:37
 */
public class InsertNetCommand extends NetCommand {
    public InsertNetCommand(String name) {
        super(name);
    }

    @Override
    public void execute(String args) {
        this.args = args;
        configOperator.insert(args);
    }

    @Override
    public void execute() {
        configOperator.insert(this.args);
    }
}
